package cn.wsalix.weixin.entity;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.FetchType;
import javax.persistence.Lob;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import com.thoughtworks.xstream.annotations.XStreamAlias;

@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "WX_TEXT")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@EntityListeners({ AuditingEntityListener.class })
@XStreamAlias("xml")
public final class TextMsg extends BaseMsg {

	/**
	 * 
	 */
	private static final long serialVersionUID = -6252042726269329819L;

	@Lob
	@Basic(fetch = FetchType.LAZY)
	@Column(name = "CONTENT", columnDefinition = "TEXT", nullable = true, length = 500)
	private String Content;// 公司简介

	public String getContent() {
		return Content;
	}

	public void setContent(String content) {
		Content = content;
	}

}
